package com.zp.crm.dao.KhDao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zp.crm.entity.KhEntity.KhEntity;

public interface KhDao {

	int selectcount(@Param(value="stuts")String stuts);

	List<KhEntity> selectPage(@Param(value="page")int pageIndex,@Param(value="size") int size,@Param(value="stuts") String stuts);

	int selectCreatecount(@Param(value="code")String code, @Param(value="name")String name,@Param(value="dq") String dq,@Param(value="stuts")  String stuts);

	List<KhEntity> selectCreatePage(@Param(value="code")String code, @Param(value="name")String name, @Param(value="dq")String dq, @Param(value="page")int pageIndex,@Param(value="size") int size, @Param(value="stuts") String stuts);

	KhEntity selectBycode(@Param(value="code")String code);

	int edit(KhEntity entity);

	int deleteCode(@Param(value="code")String code);

	int insert(KhEntity entity);

}
